package org.apache.cxf.examples.impl;

import java.util.Date;

import org.apache.cxf.examples.Application;
import org.apache.cxf.examples.ApplicationId;
import org.apache.cxf.examples.ApplicationService;


public class ApplicationServiceImpl implements ApplicationService {

	
	public LoginResult login(String username, String password) {
		return LoginResult.valueOf(password);
	}

	
	public Application getApplication(ApplicationId id) {
		Application app = new Application();
		app.setId(id);
		app.setFirstname("First");
		app.setLastname("Last");
		app.setDob(new Date());
		app.setTitle(Application.Title.Mr);
		return app;
	}
}
